<template>
  <div>
    <Appheader :parentToChild="ymname"></Appheader>
    <div class="content" v-loading="loading" v-if="info">
      <div class="title">{{info.title}}</div>
      <div class="creattime">{{info.createuser}}&nbsp;&nbsp;{{info.createtime}}</div>
      <img :src="info.photo" alt class="phott" />
      <div class="zixun_content" v-html="info.content"></div>
    </div>
    <div v-else>
      <img src="../../assets/none.png" alt class="none_img" />
    </div>
    <Appfooter></Appfooter>
  </div>
</template>

<script>
import Appheader from "./headers";
import Appfooter from "../footer";
import {
  formationinfo,
  formationtuijian,
  yikaoziliaoDetail
} from "../../api/index";
export default {
  props: {},
  data() {
    return {
      ymname: "艺考资料",
      id: "",
      loading: true,
      info: "",
      listarry: []
    };
  },
  computed: {},
  created() {

  },
  mounted() {
    this.id = this.$route.params.id || sessionStorage.getItem("school_id");
    sessionStorage.setItem("school_id", this.id);
    this.post();
  },
  watch: {},
  methods: {
    post() {
      let msg = {
        id: this.id
      };
      yikaoziliaoDetail(this.qs(msg))
        .then(res => {
          // console.log(res);
          if (res.data.code == 0 && res.data.ykZhiliao) {
            this.info = res.data.ykZhiliao;
          }
          this.loading = false;
        })
        .catch(e => {});
    }
  },
  components: { Appheader, Appfooter }
};
</script>

<style scoped>
.none_img {
  margin: 0 auto;
}
.content {
  width: 1171px;
  margin: 0 auto 50px;
}
.title {
  margin-top: 27px;
  font-size: 24px;
  font-weight: bold;
  color: rgba(51, 51, 51, 1);
  margin-bottom: 10px;
  text-align: center;
}
.creattime {
  font-size: 14px;
  text-align: center;
  font-weight: 400;
  color: rgba(51, 51, 51, 1);
}
.tui_zixun {
  margin-top: 20px;
}
.zixun_content {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(51, 51, 51, 1);
  line-height: 27px;
}
.line {
  width: 4px;
  height: 23px;
  background: rgba(216, 20, 23, 1);
  margin-left: 2px;
  margin-right: 6px;
}
.tui_line {
  font-size: 24px;
  color: rgba(51, 51, 51, 1);
}
.phott {
  width: 400px;
  height: auto;
  margin: 0 auto;
  margin-top: 10px;
}
.list_li {
  padding: 38px 75px 24px 8px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #d2d2d2;
  box-sizing: border-box;
  display: flex;
}
.list_li > img {
  width: 284px;
  height: 165px;
  margin-right: 35px;
}
.li_div_a {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.li_div_a > div {
  width: 580px;
  font-size: 24px;
  font-weight: bold;
  color: rgba(51, 51, 51, 1);
}
.li_div_a > p {
  font-size: 14px;
  color: rgba(153, 153, 153, 1);
}
.li_div_b {
  margin-top: 13px;
  font-size: 14px;
  color: rgba(51, 51, 51, 1);
  line-height: 26px;
  width: 795px;
}
.li_div_c {
  display: flex;
  justify-content: flex-end;
}
.li_div_c > div {
  width: 99px;
  height: 30px;
  border: 1px solid rgba(51, 51, 51, 1);
  font-size: 14px;
  color: rgba(51, 51, 51, 1);
  line-height: 30px;
  text-align: center;
  margin-top: 5px;
  cursor: pointer;
}
.list_li:hover {
  border-top: 1px solid #d81417;
  border-bottom: 1px solid #d81417;
}
</style>
